home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 June / CHIP 2006-06.2.iso / program / basic_kit / WinRAR / wrar36b1.exe / Rar.txt < prev    next >
Encoding:
Text File  |  2006-02-23  |  69.3 KB  |  1,809 lines

  1.                              User's Manual
  2.                              ~~~~~~~~~~~~~
  3.                      RAR 3.60 32-bit console version
  4.                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5.  
  6.                        =-=-=-=-=-=-=-=-=-=-=-=-=-=-
  7.                        Welcome to the RAR Archiver!
  8.                        -=-=-=-=-=-=-=-=-=-=-=-=-=-=
  9.  
  10.  Introduction
  11.  ~~~~~~~~~~~~
  12.  
  13.     RAR is a powerful tool allowing you to manage and control archive
  14.   files. Console RAR supports archives only in RAR format, the names
  15.   of which usually have a ".rar" extension. ZIP and other formats
  16.   are not supported. Windows users may install GUI RAR version - WinRAR,
  17.   which is able to process many more archive types.
  18.  
  19.   RAR features include:
  20.  
  21.     *  Highly sophisticated, original compression algorithm
  22.     *  Special compression algorithms optimized for text, audio,
  23.        graphics data, 32 and 64-bit Intel executables
  24.     *  Better compression than similar tools, using 'solid' archiving
  25.     *  Authenticity verification (registered version only)
  26.     *  Self-extracting archives and volumes (SFX)
  27.     *  Ability to recover physically damaged archives
  28.     *  Locking, password, file order list, file security & more ...
  29.  
  30.  
  31.  Configuration file
  32.  ~~~~~~~~~~~~~~~~~~
  33.  
  34.   RAR for Unix reads configuration information from the file .rarrc
  35.   in the user's home directory (stored in HOME environment variable)
  36.   or in /etc directory.
  37.  
  38.   RAR for Windows reads configuration information from the file rar.ini,
  39.   placed in the same directory as the rar.exe file.
  40.  
  41.   This file may contain the following string:
  42.  
  43.   switches=any RAR switches, separated by spaces
  44.  
  45.   For example:
  46.  
  47.   switches=-m5 -s
  48.  
  49.  
  50.  Environment variable
  51.  ~~~~~~~~~~~~~~~~~~~~
  52.  
  53.     Default parameters may be added to the RAR command line by establishing
  54.     an environment variable "RAR".
  55.  
  56.     For instance, in UNIX following lines may be added to your profile:
  57.  
  58.       RAR='-s -md1024'
  59.       export RAR
  60.  
  61.     RAR will use this string as default parameters in the command line and
  62.     will create "solid" archives with 1024 KB sliding dictionary size.
  63.  
  64.     RAR handles options with priority as following:
  65.  
  66.        command line switches                   highest priority
  67.        switches in the RAR variable            lower priority
  68.        switches saved in configuration file    lowest priority
  69.  
  70.  
  71.  Log file
  72.  ~~~~~~~~
  73.  
  74.   If the switch -ilog is specified in the command line or configuration
  75.   file, RAR will write informational messages, concerning errors
  76.   encountered while processing archives, into a log file. In Unix
  77.   this file is named .rarlog and placed in the user's home directory.
  78.   In Windows it is named rar.log and placed in the same directory as
  79.   the rar.exe file. Switch -ilog allows to override the default log name.
  80.  
  81.  
  82.  The file order list for solid archiving - rarfiles.lst
  83.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  84.  
  85.   rarfiles.lst contains a user-defined file list, which tells RAR
  86.   the order in which to add files to a solid archive. It may contain
  87.   file names, wildcards and special entry - $default. The default
  88.   entry defines the place in order list for files not matched
  89.   with other entries in this file. The comment character is ';'.
  90.  
  91.   In Windows this file should be placed in the same directory as RAR,
  92.   in Unix - to the user's home directory or in /etc.
  93.  
  94.   Tips to provide improved compression and speed of operation:
  95.  
  96.   - similar files should be grouped together in the archive;
  97.   - frequently accessed files should be placed at the beginning.
  98.  
  99.   Normally masks placed nearer to the top of list have a higher priority,
  100.   but there is an exception from this rule. If rarfiles.lst contains such
  101.   two masks that all files matched by one mask are also matched by another,
  102.   that mask which matches a smaller subset of file names will have higher
  103.   priority regardless of its position in the list. For example, if you have
  104.   *.cpp and f*.cpp masks, f*.cpp has a higher priority, so the position of
  105.   'filename.cpp' will be chosen according to 'f*.cpp', not '*.cpp'.
  106.  
  107.  
  108.  RAR command line syntax
  109.  ~~~~~~~~~~~~~~~~~~~~~~~
  110.  
  111.  Syntax
  112.  
  113.     RAR <command>  [ -<switches> ]  <archive>  [ <@listfiles...> ]
  114.         [ <files...> ]  [ <path_to_extract\> ]
  115.  
  116.  Description
  117.  
  118.     Command line options (commands and switches) provide control of
  119.     creating and managing archives with RAR. The command is a string (or a
  120.     single letter) which commands RAR to perform a corresponding action.
  121.     Switches are designed to modify the way RAR performs the action. Other
  122.     parameters are archive name and files to be archived into or extracted
  123.     from the archive.
  124.  
  125.     Listfiles are plain text files that contain names of files to process.
  126.     File names should start at the first column. It is possible to
  127.     put comments to the listfile after // characters. For example,
  128.     you may create backup.lst containing the following strings:
  129.  
  130.     c:\work\doc\*.txt         //backup text documents
  131.     c:\work\image\*.bmp       //backup pictures
  132.     c:\work\misc
  133.  
  134.     and then run:
  135.  
  136.        rar a backup @backup.lst
  137.  
  138.     If you wish to read file names from stdin (standard input),
  139.     specify the empty listfile name (just @).
  140.  
  141.     Win32 console RAR uses OEM (DOS) encoding in list files.
  142.  
  143.     You may specify both usual file names and list files in the same
  144.     command line. If neither files nor listfiles are specified,
  145.     then *.* is implied and RAR will process all files
  146.  
  147.     In a UNIX environment you need to quote wildcards to avoid them
  148.     being expanded by shell. For example, this command will extract
  149.     *.asm files from RAR archives in current path:
  150.  
  151.        rar e '*.rar' '*.asm'
  152.  
  153.  
  154.     Command could be any of the following:
  155.  
  156.     a       Add files to archive.
  157.  
  158.             Example:
  159.  
  160.             create or update existent archive myarch, adding all files
  161.             in the current directory
  162.  
  163.             rar a myarch
  164.  
  165.  
  166.     c       Add archive comment. Comments are displayed while the archive is
  167.             being processed. Comment length is limited to 62000 bytes
  168.  
  169.             Examples:
  170.  
  171.             rar c distrib.rar
  172.  
  173.             Also comments may be added from a file using -z<name> switch.
  174.             The following command adds a comment from info.txt file:
  175.  
  176.             rar c -zinfo.txt dummy
  177.  
  178.  
  179.     cf      Add files comment. File comments are displayed when the 'v'
  180.             command is given. File comment length is limited to 32767 bytes.
  181.  
  182.             Example:
  183.  
  184.             rar cf bigarch *.txt
  185.  
  186.  
  187.     ch      Change archive parameters.
  188.  
  189.             This command can be used with most of archive modification
  190.             switches to modify archive parameters. It is especially
  191.             convenient for switches like -av, -cl, -cu, -tl, which do not
  192.             have a dedicated command.
  193.  
  194.             It is not able to recompress, encrypt or decrypt archive data
  195.             and it cannot merge or create volumes. If used without any
  196.             switches, 'ch' command just copies the archive data without
  197.             modification.
  198.  
  199.             Example:
  200.  
  201.             Set archive time to latest file:
  202.  
  203.             rar ch -tl files.rar
  204.  
  205.  
  206.     cw      Write archive comment to specified file.
  207.  
  208.             If used with -fcu switch, the format of output file
  209.             is low endian Unicode. Otherwise it is ASCII.
  210.  
  211.             Examples:
  212.  
  213.             1) rar cw arc comment.txt
  214.  
  215.             2) rar cw -fcu arc unicode.txt
  216.  
  217.  
  218.     d       Delete files from archive. Please note if the processing of this
  219.             command results in removing all the files from the archive,
  220.             the empty archive would removed.
  221.  
  222.  
  223.     e       Extract files to current directory.
  224.  
  225.  
  226.     f       Freshen files in archive. Updates those files changed since they
  227.             were packed to the archive. This command will not add new files
  228.             to the archive.
  229.  
  230.  
  231.     i[i|c|h|t]=<string>
  232.             Find string in archives.
  233.  
  234.             Supports following optional parameters:
  235.  
  236.               i - case insensitive search (default);
  237.  
  238.               c - case sensitive search;
  239.  
  240.               h - hexadecimal search;
  241.  
  242.               t - use ANSI, Unicode and OEM character tables (Win32 only);
  243.  
  244.             If no parameters are specified, it is possible to use
  245.             the simplified command syntax i<string> instead of i=<string>
  246.  
  247.             It is allowed to specify 't' modifier with other parameters,
  248.             for example, ict=string performs case sensitive search
  249.             using all mentioned above character tables.
  250.  
  251.             Examples:
  252.  
  253.             1) rar "ic=first level" -r c:\*.rar *.txt
  254.  
  255.             Perform case sensitive search of "first level" string
  256.             in *.txt files in *.rar archives on the disk c:
  257.  
  258.             2) rar ih=f0e0aeaeab2d83e3a9 -r e:\texts
  259.  
  260.             Search for hex string f0 e0 ae ae ab 2d 83 e3 a9
  261.             in rar archives in e:\texts directory.
  262.  
  263.  
  264.     k       Lock archive. Any command which intends to change the archive
  265.             will be ignored.
  266.  
  267.             Example:
  268.  
  269.             rar k final.rar
  270.  
  271.  
  272.     l[t,b]  List contents of archive [technical]. Files are listed as with
  273.             the 'v' command with the exception of the file path. i.e. only
  274.             the file name is displayed. Optional technical information
  275.             (host OS, solid flag and old version flag) is displayed
  276.             when 't' modifier is used. Modifier 'b' forces RAR to output
  277.             only bare file names without any additional information.
  278.  
  279.  
  280.     m[f]    Move to archive [files only]. Moving files and directories
  281.             results in the files and directories being erased upon
  282.             successful completion of the packing operation. Directories will
  283.             not be removed if 'f' modifier is used and/or '-ed' switch is
  284.             applied.
  285.  
  286.  
  287.     p       Print file to stdout.
  288.  
  289.             You may use this command together with -inul switch to disable
  290.             all RAR messages and print only file data. It may be important
  291.             when you need to send a file to stdout for use in pipes.
  292.  
  293.  
  294.     r       Repair archive. Archive repairing is performed in two stages.
  295.             First, the damaged archive is searched for a recovery record
  296.             (see 'rr' command). If the archive contains a recovery record
  297.             and if the portion of the damaged data is continuous and less
  298.             than N*512 bytes, where N is number of recovery sectors placed
  299.             into the archive, the chance of successful archive
  300.             reconstruction is very high. When this stage has been completed,
  301.             a new archive will be created, called fixed.arcname.rar,
  302.             where 'arcname' is the original (damaged) archive name.
  303.  
  304.             If a broken archive does not contain a recovery record or if
  305.             the archive is not completely recovered due to major damage, a
  306.             second stage is performed. During this stage only the archive
  307.             structure is reconstructed and it is impossible to recover
  308.             files which fail the CRC validation, it is still possible,
  309.             however, to recover undamaged files, which were inaccessible
  310.             due to the broken archive structure. Mostly this is useful
  311.             for non-solid archives.
  312.  
  313.             When the second stage is completed, the reconstructed archive
  314.             will be saved as rebuilt.arcname.rar, where 'arcname' is
  315.             the original archive name.
  316.  
  317.             RAR/DOS32 version uses _recover.rar and _reconst.rar instead
  318.             of names mentioned aboves.
  319.  
  320.             While the recovery is in progress, RAR may prompt the user for
  321.             assistance when a suspicious file is detected.
  322.  
  323.                       Suspicious entry
  324.  
  325.               Name:  <possibly filename>
  326.               Size:  <size>    Packed: <compressed size>
  327.  
  328.                       Add it: Yes/No/All
  329.  
  330.             Answer 'y' to add this entry to the file fixed.arcname.rar.
  331.  
  332.             Example:
  333.  
  334.             rar r buggy.rar
  335.  
  336.  
  337.     rc      Reconstruct missing and damaged volumes using recovery volumes
  338.             (.rev files). You need to specify any existing volume
  339.             as the archive name, for example, 'rar rc backup.part03.rar'
  340.  
  341.             Read 'rv' command description for information about
  342.             recovery volumes.
  343.  
  344.  
  345.     rn      Rename archived files.
  346.  
  347.             The command syntax is:
  348.  
  349.             rar rn <arcname> <srcname1> <destname1> ... <srcnameN> <destnameN>
  350.  
  351.             For example, the following command:
  352.  
  353.             rar rn data.rar readme.txt readme.bak info.txt info.bak
  354.  
  355.             will rename readme.txt to readme.bak and info.txt to info.bak
  356.             in the archive data.rar.
  357.  
  358.             It is allowed to use wildcards in the source and destination
  359.             names for simple name transformations like changing file
  360.             extensions. For example:
  361.  
  362.             rar rn data.rar *.txt *.bak
  363.  
  364.             will rename all *.txt files to *.bak.
  365.  
  366.             RAR does not check if the destination file name is already
  367.             present in the archive, so you need to be careful to avoid
  368.             duplicated names. It is especially important when using
  369.             wildcards. Such a command is potentially dangerous, because
  370.             a wrong wildcard may corrupt all archived names.
  371.  
  372.  
  373.     rr[N]   Add data recovery record. Optionally, redundant information
  374.             (recovery record) may be added to an archive. This will cause
  375.             a small increase of the archive size and helps to recover
  376.             archived files in case of floppy disk failure or data losses of
  377.             any other kind. A recovery record contains up to 524288 recovery
  378.             sectors. The number of sectors may be specified directly in the
  379.             'rr' command (N = 1, 2 .. 524288) or, if it is not specified by
  380.             the user, it will be selected automatically according to the
  381.             archive size: a size of the recovery information will be about
  382.             1% of the total archive size, usually allowing the recovery of
  383.             up to 0.6% of the total archive size of continuously damaged data.
  384.  
  385.             It is also possible to specify the recovery record size in
  386.             percent to the archive size. Just append the percent character
  387.             to the command parameter. For example:
  388.  
  389.             rar rr3% arcname
  390.  
  391.             Note that if you run this command from .bat or .cmd file,
  392.             you need to use rr3%% instead of rr3%, because the command
  393.             processor treats the single '%' character as the start of
  394.             a batch file parameter. You may also use 'p' instead of '%',
  395.             so 'rr3p' will work too.
  396.  
  397.             If data is damaged continuously, then each rr-sector helps to
  398.             recover 512 bytes of damaged information. This value may be
  399.             lower in cases of multiple damage.
  400.  
  401.             The size of the recovery record may be approximately determined
  402.             by the formula <archive size>/256 + <number of recovery
  403.             sectors>*512 bytes.
  404.  
  405.  
  406.     rv[N]   Create recovery volumes (.rev files), which can be later
  407.             used to reconstruct missing and damaged files in a volume
  408.             set. This command makes sense only for multivolume archives
  409.             and you need to specify the name of the first volume
  410.             in the set as the archive name. For example:
  411.  
  412.             rar rv3 data.part01.rar
  413.  
  414.             This feature may be useful for backups or, for example,
  415.             when you posted a multivolume archive to a newsgroup
  416.             and a part of subscribers did not receive some of the files.
  417.             Reposting recovery volumes instead of usual volumes
  418.             may reduce the total number of files to repost.
  419.  
  420.             Each recovery volume is able to reconstruct one missing
  421.             or damaged RAR volume. For example, if you have 30 volumes
  422.             and 3 recovery volumes, you are able to reconstruct any
  423.             3 missing volumes. If the number of .rev files is less than
  424.             the number of missing volumes, reconstructing is impossible.
  425.             The total number of usual and recovery volumes must not
  426.             exceed 255.
  427.  
  428.             Original RAR volumes must not be modified after creating
  429.             recovery volumes. Recovery algorithm uses data stored both
  430.             in REV files and in RAR volumes to rebuild missing RAR volumes.
  431.             So if you modify RAR volumes, for example, lock them, after
  432.             creating REV files, recovery process will fail.
  433.  
  434.             The optional <N> parameter specifies a number of recovery
  435.             volumes to create and must be less than the total number
  436.             of RAR volumes in the set. You may also append a percent
  437.             character to this parameter, in such case the number of
  438.             creating .rev files will be equal to this percent taken
  439.             from the total number of RAR volumes. For example:
  440.  
  441.             rar rv15% data.part01.rar
  442.  
  443.             RAR reconstructs missing and damaged volumes either when
  444.             using 'rc' command or automatically, if it cannot locate
  445.             the next volume and finds the required number of .rev files
  446.             when unpacking.
  447.  
  448.             Original copies of damaged volumes are renamed to *.bad
  449.             before reconstruction. For example, volname.part03.rar
  450.             will be renamed to volname.part03.rar.bad.
  451.             
  452.  
  453.     s[name] Convert archive to SFX. The archive is merged with a SFX module
  454.             (using a module in file default.sfx or specified in the switch).
  455.             In the Windows version default.sfx should be placed in the
  456.             same directory as the rar.exe, in Unix - in the user's
  457.             home directory, in /usr/lib or /usr/local/lib.
  458.  
  459.     s-      Remove SFX module from the already existing SFX archive.
  460.             RAR creates a new archive without SFX module, the original
  461.             SFX archive is not deleted.
  462.  
  463.     t       Test archive files. This command performs a dummy file
  464.             extraction, writing nothing to the output stream, in order to
  465.             validate the specified file(s).
  466.  
  467.             Examples:
  468.  
  469.             Test archives in current directory:
  470.  
  471.             rar t *
  472.  
  473.             or for Unix:
  474.  
  475.             rar t '*'
  476.  
  477.             User may test archives in all sub-directories, starting
  478.             with the current path:
  479.  
  480.             rar t -r *
  481.  
  482.             or for Unix:
  483.  
  484.             rar t -r '*'
  485.  
  486.  
  487.     u       Update files in archive. Adds files not yet in the archive
  488.             and updates files that have been changed since they were packed
  489.             into the archive.
  490.  
  491.  
  492.     v[t,b]  Verbosely list the contents of archive [technical].
  493.             Files are listed using the format: full pathname, file comment,
  494.             original and compressed size, compression ratio, last update
  495.             date and time, attributes, CRC, compression method and minimum
  496.             RAR version required to extract. Optional technical information
  497.             (host OS, solid flag and old file version flag) is displayed
  498.             when 't' modifier is used. Modifier 'b' forces RAR to output
  499.             only bare file names without any additional information.
  500.  
  501.             To list the contents of all archive volumes, use an asterisk
  502.             ('*') in place of the archive file extension or use the '-v'
  503.             switch.
  504.  
  505.             Example:
  506.  
  507.             1) list contents of system.rar archive (technical mode)
  508.                and redirect output to file techlist.lst
  509.  
  510.                rar vt system >techlist.lst
  511.  
  512.             2) list contents of tutorial.rar archive (bare file names mode)
  513.  
  514.                rar vb tutorial
  515.  
  516.  
  517.     x       Extract files with full path.
  518.  
  519.             Example:
  520.  
  521.             rar x -av- -c- dime 10cents.txt
  522.  
  523.             extract specified file to current path. AV check and comment
  524.             show are disabled.
  525.  
  526.  
  527.     Switches (used in conjunction with a command):
  528.  
  529.  
  530.     -?      Display help on commands and switches. The same as when none
  531.             or an illegal command line option is entered.
  532.  
  533.  
  534.     --      Stop switches scanning
  535.  
  536.             This switch tells to RAR that there are no more switches
  537.             in the command line. It could be useful, if either archive
  538.             or file name starts from '-' character. Without '--' switch
  539.             such a name would be treated as a switch.
  540.  
  541.             Example:
  542.  
  543.             add all files from the current directory to the solid archive
  544.             '-StrangeName'
  545.  
  546.             RAR a -s -- -StrangeName
  547.  
  548.     -ac     Clear Archive attribute after compression or extraction
  549.             (Windows version only).
  550.  
  551.  
  552.     -ad     Append archive name to destination path.
  553.  
  554.             This option may be useful when unpacking a group of archives.
  555.             By default RAR places files from all archives in the same
  556.             directory, but this switch creates a separate directory
  557.             for files unpacked from each archive.
  558.  
  559.             Example:
  560.  
  561.             rar x -ad *.rar data\
  562.  
  563.             RAR will create subdirectories below 'data' for every unpacking
  564.             archive.
  565.  
  566.  
  567.     -ag[format]
  568.             Generate archive name using the current date and time.
  569.  
  570.             Appends the current date string to an archive name when
  571.             creating an archive. Useful for daily backups.
  572.  
  573.             Format of the appending string is defined by the optional
  574.             "format" parameter or by "YYYYMMDDHHMMSS" if this parameter
  575.             is absent. The format string may include the following
  576.             characters:
  577.  
  578.             Y   - year
  579.             M   - month
  580.             MMM - month name as text string (Jan, Feb, etc.)
  581.             W   - a week number (a week starts with Monday)
  582.             A   - day of week number (Monday is 1, Sunday - 7)
  583.             D   - day of month
  584.             E   - day of year
  585.             H   - hours
  586.             M   - minutes (treated as minutes if encountered after hours)
  587.             S   - seconds
  588.             N   - archive number. RAR searches for already existing archive
  589.                   with generated name and if found, increments the archive
  590.                   number until generating a unique name.
  591.  
  592.             Each of format string characters listed above represents only
  593.             one character added to archive name. For example, use WW for
  594.             two digit week number or YYYY to define four digit year.
  595.  
  596.             If the first character in the format string is '+', positions
  597.             of the date string and base archive name are exchanged,
  598.             so a date will precede an archive name.
  599.  
  600.             The format string may contain optional text enclosed in '{'
  601.             and '}' characters. This text is inserted into archive name.
  602.  
  603.             All other characters are added to an archive name without
  604.             changes.
  605.  
  606.             If you need to update an already existing archive, be careful
  607.             with -ag switch. Depending on the format string and time passed
  608.             since previous -ag use, generated and existing archive names
  609.             may mismatch. In this case RAR will create a new archive
  610.             instead of updating the already existing.
  611.  
  612.  
  613.             Examples:
  614.  
  615.             1) use the default YYYYMMDDHHMMSS format
  616.  
  617.                rar a -ag backup
  618.  
  619.             2) use DD-MMM-YY format
  620.  
  621.                rar a -agDD-MMM-YY backup
  622.  
  623.             3) use YYYYMMDDHHMM format, place date before 'backup'
  624.  
  625.                rar a -ag+YYYYMMDDHHMM backup
  626.  
  627.             4) use YYYY-WW-A format, include fields description
  628.  
  629.                rar a -agYYYY{year}-WW{week}-A{wday} backup
  630.  
  631.             5) use YYYYMMDD and the archive number. It allows to generate
  632.                unique names even when YYYYMMDD format mask used more than
  633.                once in the same day
  634.  
  635.                rar a -agYYYYMMDD-NN backup
  636.  
  637.  
  638.     -ao     Add files with Archive attribute set
  639.             (Windows version only).
  640.  
  641.             Example:
  642.  
  643.             add all disk C: files with Archive attribute set
  644.             to the 'f:backup' and clear files Archive attribute
  645.  
  646.             rar a -r -ac -ao f:backup c:\*.*
  647.  
  648.  
  649.     -ap     Set path inside archive. This path is merged to file
  650.             names when adding files to an archive and removed
  651.             from file names when extracting.
  652.  
  653.             For example, if you wish to add the file 'readme.txt'
  654.             to the directory 'DOCS\ENG' of archive 'release',
  655.             you may run:
  656.  
  657.             rar a -apDOCS\ENG release readme.txt
  658.  
  659.             or to extract 'ENG' to the current directory:
  660.  
  661.             rar x -apDOCS release DOCS\ENG\*.*
  662.  
  663.  
  664.     -as     Synchronize archive contents
  665.  
  666.             If this switch is used when archiving, those archived files
  667.             which are not present in the list of the currently added
  668.             files, will be deleted from the archive. It is convenient to
  669.             use this switch in combination with -u (update) to synchronize
  670.             contents of an archive and an archiving directory.
  671.  
  672.             For example, after the command:
  673.  
  674.             rar a -u -as backup sources\*.cpp
  675.  
  676.             the archive 'backup.rar' will contain only *.cpp files
  677.             from directory 'sources', all other files will be deleted
  678.             from the archive. It looks similar to creating a new archive,
  679.             but with one important exception: if no files are modified
  680.             since the last backup, the operation is performed much faster
  681.             than the creation of a new archive.
  682.  
  683.  
  684.     -av     Put authenticity verification (registered versions only).
  685.             RAR will put, in every new and updated archive, information
  686.             concerning the creator, last update time and archive name.
  687.  
  688.             If an archive, containing authenticity verification, is being
  689.             modified and this switch is not specified, the authenticity
  690.             verification information will be removed.
  691.  
  692.             When extracting, testing, listing or updating an archive with
  693.             the '-av' switch, RAR will perform integrity validation and
  694.             display the message:
  695.  
  696.               Verifying authenticity information ...
  697.  
  698.             In the case of successful authenticity verification, the message
  699.             'Ok', creator name and last update information will be
  700.             displayed. In the case of authenticity verification failure, the
  701.             message 'FAILED' will be displayed.
  702.  
  703.             The Authenticity Verification feature, '-av,' is recommended for
  704.             use with archives in a software distribution environment.
  705.  
  706.             In order to enable the Authenticity verification feature, the
  707.             program MUST be registered. Please contact your local
  708.             distribution site or the world-wide distribution center.
  709.  
  710.  
  711.     -av-    Disable authenticity verification checking or adding.
  712.  
  713.  
  714.     -cfg-   Ignore configuration file and RAR environment variable.
  715.  
  716.  
  717.     -cl     Convert file names to lower case.
  718.  
  719.  
  720.     -cu     Convert file names to upper case.
  721.  
  722.  
  723.     -c-     Disable comments show.
  724.  
  725.  
  726.     -df     Delete files after archiving
  727.  
  728.             Move files to archive. This switch in combination with
  729.             the command "A" performs the same action as the command "M".
  730.            
  731.  
  732.     -dh     Open shared files
  733.  
  734.             Allows to process files opened by other applications
  735.             for writing.
  736.  
  737.             This switch helps if an application allowed read access
  738.             to file, but if all types of file access are prohibited,
  739.             the file open operation will still fail.
  740.  
  741.             This option could be dangerous, because it allows
  742.             to archive a file, which at the same time is modified
  743.             by another application, so use it carefully.
  744.  
  745.  
  746.     -ds     Do not sort files while adding to a solid archive.
  747.  
  748.  
  749.     -ed     Do not add empty directories
  750.  
  751.             This switch indicates that directory records are not to be
  752.             stored in the created archive. When extracting such archives,
  753.             RAR creates non-empty directories basing on paths of files
  754.             contained in them. Information about empty directories is
  755.             lost. All attributes of non-empty directories except a name
  756.             (access rights, streams, etc.) will be lost as well, so use
  757.             this switch only if you do not need to preserve such information.
  758.  
  759.             If -ed is used with 'm' command or -df switch, RAR will not
  760.             remove empty directories.
  761.  
  762.  
  763.     -ee     Do not process extended attributes
  764.  
  765.             Disables saving and restoring extended file attributes.
  766.             Only for OS/2 versions.
  767.  
  768.  
  769.     -en     Do not add "end of archive" block
  770.  
  771.             By default, RAR adds an "end of archive" block to the end of
  772.             a new or updated archive. It allows to skip external data like
  773.             digital signatures safely, but in some special cases it may be
  774.             useful to disable this feature. For example, if an archive
  775.             is transferred between two systems via an unreliable link and
  776.             at the same time a sender adds new files to it, it may be
  777.             important to be sure that the already received file part will
  778.             not be modified on the other end between transfer sessions.
  779.  
  780.             This switch cannot be used with volumes, because the end
  781.             of archive block contains information important for correct
  782.             volume processing. 
  783.  
  784.  
  785.     -ep     Exclude paths from names. This switch enables files to be added
  786.             to an archive without including the path information. This
  787.             could, of course, result in multiple files existing in the
  788.             archive with the same name.
  789.  
  790.  
  791.     -ep1    Exclude base dir from names. Do not store the path entered in
  792.             the command line.
  793.  
  794.             Example:
  795.  
  796.             all files and directories from the directory tmp will be added
  797.             to the archive 'test', but the path in archived names will not
  798.             include 'tmp\'
  799.  
  800.             rar a -ep1 -r test tmp\*
  801.  
  802.             This is equivalent to the commands:
  803.  
  804.             cd tmp
  805.             rar a -r ..\test
  806.             cd ..
  807.  
  808.  
  809.     -ep2    Expand paths to full. Store full file paths (except a drive
  810.             letter and leading path separator) when archiving.
  811.     
  812.  
  813.     -ep3    Expand paths to full including the drive letter.
  814.             Win32 version only.
  815.  
  816.             This switch stores full file paths including the drive
  817.             letter if used when archiving. Drive separators (colons)
  818.             are replaced by underscore characters.
  819.  
  820.             If you use -ep3 when extracting, it will change
  821.             underscores back to colons and create unpacked files
  822.             in their original directories and disks. If the user
  823.             also specified a destination path, it will be ignored.
  824.  
  825.             This switch can help to backup several disks to the same
  826.             archive. For example, you may run:
  827.  
  828.             rar a -ep3 -r backup.rar c:\ d:\ e:\
  829.  
  830.             to create backup and:
  831.  
  832.             rar x -ep3 backup.rar
  833.  
  834.             to restore it.
  835.  
  836.             But be cautious and use -ep3 only if you are sure that
  837.             extracting archive does not contain any malicious files.
  838.             In other words, use it if you have created an archive yourself
  839.             or completely trust its author. This switch allows to overwrite
  840.             any file in any location on your computer including important
  841.             system files and should normally be used only for the purpose
  842.             of backup and restore.
  843.  
  844.  
  845.     -e[+]<attr>
  846.             Specifies file exclude or include attributes mask.
  847.  
  848.             <attr> is a number in the decimal, octal (with leading '0')
  849.             or hex (with leading '0x') format.
  850.  
  851.             By default, without '+' sign before <attr>, this switch
  852.             defines the exclude mask. So if result of bitwise AND between
  853.             <attr> and file attributes is nonzero, file would not be
  854.             processed.
  855.  
  856.             If '+' sign is present, it specifies the include mask.
  857.             Only those files which have at least one attribute specified
  858.             in the mask will be processed.
  859.  
  860.             In Windows version is also possible to use symbols D, S, H,
  861.             A and R instead of a digital mask to denote directories
  862.             and files with system, hidden, archive and read-only attributes.
  863.             The order in which the attributes are given is not significant.
  864.             Unix version supports D and V symbols to define directory
  865.             and device attributes.
  866.  
  867.             It is allowed to specify both -e<attr> and -e+<attr>
  868.             in the same command line.
  869.  
  870.             Examples:
  871.  
  872.             1) archive only directory names without their contents
  873.  
  874.                rar a -r -e+d dirs
  875.  
  876.             2) do not compress system and hidden files:
  877.  
  878.                rar a -esh files
  879.  
  880.             3) do not extract read-only files:
  881.  
  882.                rar x -er files
  883.  
  884.  
  885.     -f      Freshen files. May be used with archive extraction or creation.
  886.             The command string "a -f" is equivalent to the command 'f', you
  887.             could also use the switch '-f' with the commands 'm' or 'mf'. If
  888.             the switch '-f' is used with the commands 'x' or 'e', then only
  889.             old files would be replaced with new versions extracted from the
  890.             archive.
  891.  
  892.  
  893.     -fcu[file]
  894.             Use Unicode text format when adding or writing archive comments.
  895.  
  896.             When adding a comment to archive, this switch modifies
  897.             behavior of -z<file> switch forcing RAR to process
  898.             the specified file as Unicode text. Such Unicode file
  899.             must have FFFE or FEFF Unicode character in the beginning,
  900.             otherwise RAR will ignore this switch and process the file
  901.             as ASCII text. It is allowed to replace "-fcu -z<file>"
  902.             combination with the single -fcu<file> switch.
  903.             
  904.             When using together with "cw" command, -fcu switch sets
  905.             the format of output file to low endian Unicode text.
  906.  
  907.  
  908.     -hp[p]  Encrypt both file data and headers.
  909.  
  910.             This switch is similar to -p[p], but switch -p encrypts
  911.             only file data and leaves other information like file names
  912.             visible. This switch encrypts all sensitive archive areas
  913.             including file data, file names, sizes, attributes, comments
  914.             and other blocks, so it provides a higher security level.
  915.             Without a password it is impossible to view even the list of
  916.             files in archive encrypted with -hp.
  917.  
  918.             Example:
  919.  
  920.             rar a -hpfGzq5yKw secret report.txt
  921.  
  922.             will add the file report.txt to the encrypted archive
  923.             secret.rar using the password 'fGzq5yKw'
  924.  
  925.  
  926.     -id[c,d,p,q]
  927.             Disable messages.
  928.  
  929.             Switch -idc disables the copyright string.
  930.  
  931.             Switch -idd disables "Done" string at the end of operation.
  932.  
  933.             Switch -idp disables the percentage indicator.
  934.  
  935.             Switch -idq turns on the quiet mode, so only error messages
  936.             and questions are displayed.
  937.  
  938.             It is allowed to use several modifiers at once,
  939.             so switch -idcdp is correct.
  940.  
  941.  
  942.     -ieml[.][addr]
  943.             Send archive by email. Win32 version only.
  944.  
  945.             Attach an archive created or updated by the add command
  946.             to email message. You need to have a MAPI compliant email
  947.             client to use this switch (most modern email programs
  948.             support MAPI interface).
  949.  
  950.             You may enter a destination email address directly
  951.             in the switch or leave it blank. In the latter case you
  952.             will be asked for it by your email program. It is possible
  953.             to specify several addresses separated by commas or semicolons.
  954.  
  955.             If you append a dot character to -ieml, an archive will be
  956.             deleted after it was successfully attached to an email.
  957.             If the switch is used when creating a multivolume archive,
  958.             every volume is attached to a separate email message.
  959.  
  960.  
  961.     -ierr   Send all messages to stderr.
  962.  
  963.  
  964.     -ilog[name]
  965.             Log errors to file (registered version only).
  966.  
  967.             Write error messages to the file rar.log created in RAR
  968.             directory. It is possible to specify another log file name
  969.             instead of the default rar.log in the switch, for example,
  970.             -ilogc:\log\backup.log. If the specifed name does not include
  971.             the path, the log file will be created in the RAR directory.
  972.  
  973.  
  974.     -inul   Disable all messages.
  975.  
  976.  
  977.     -ioff   Turn PC off after completing an operation. The hardware must
  978.             support the power off feature. Win32 version only.
  979.  
  980.  
  981.     -isnd   Enable sound.
  982.  
  983.  
  984.     -k      Lock archive. Any command which intends to change the archive
  985.             will be ignored.
  986.  
  987.  
  988.     -kb     Keep broken extracted files.
  989.  
  990.             RAR, by default, deletes files with CRC errors after
  991.             extraction. The switch -kb specifies that files with
  992.             CRC errors should not be deleted.
  993.  
  994.  
  995.     -m<n>   Set compression method:
  996.  
  997.        -m0   store     do not compress file when adding to archive
  998.        -m1   fastest   use fastest method (less compressive)
  999.        -m2   fast      use fast compression method
  1000.        -m3   normal    use normal (default) compression method
  1001.        -m4   good      use good compression method (more
  1002.                        compressive, but slower)
  1003.        -m5   best      use best compression method (slightly more
  1004.                        compressive, but slowest)
  1005.  
  1006.             If this switch is not specified, RAR uses -m3 method
  1007.             (normal compression).
  1008.  
  1009.             By default, RAR uses only the general compression
  1010.             algorithm in -m1 and -m2 methods, advanced algorithms
  1011.             like audio and true color processing are enabled
  1012.             only in -m3..-m5 modes, the advanced text compression
  1013.             is activated only in -m4..-m5. This default can be
  1014.             overridden using -mc switch.
  1015.  
  1016.  
  1017.     -mc<par>
  1018.             Set advanced compression parameters.
  1019.  
  1020.             This switch is intended mainly for benchmarking and
  1021.             experiments. In the real environment it is usually better
  1022.             to allow RAR to select optimal parameters automatically.
  1023.             Please note that improper use of this switch may lead
  1024.             to very serious performance and compression loss, so use
  1025.             it only if you clearly understand what you do.
  1026.  
  1027.             It has the following syntax:
  1028.  
  1029.             -mc[param1][:param2][module][+ or -]
  1030.  
  1031.             where <module> is the one character field denoting a part
  1032.             of the compression algorithm, which has to be configured.
  1033.  
  1034.             It may have the following values:
  1035.  
  1036.               A       - audio compression;
  1037.               C       - true color (RGB) data compression;
  1038.               D       - delta compression;
  1039.               E       - 32-bit x86 executables compression;
  1040.               I       - 64-bit Intel Itanium executables compression;
  1041.               T       - text compression.
  1042.  
  1043.             '+' sign at the end of switch applies the selected algorithm
  1044.             module to all processed data, '-' disables the module at all.
  1045.             If no sign is specified, RAR will choose modules automatically,
  1046.             based on data and the current compression method.
  1047.  
  1048.             Switch -mc- disables all optional modules and allows only
  1049.             the general compression algorithm.
  1050.  
  1051.             <Param1> and <Param2> are module dependent parameters
  1052.             described below.
  1053.  
  1054.             Audio compression, delta compression:
  1055.  
  1056.             <Param1> is a number of byte channels (can be 1 - 31).
  1057.             RAR splits multibyte channels to bytes, for example,
  1058.             two 16-bit audio channels are considered by RAR as four
  1059.             channels one byte each.
  1060.  
  1061.             <Param2> is ignored.
  1062.  
  1063.  
  1064.             32-bit x86 Intel executables compression,
  1065.             64-bit Intel Itanium executables compression,
  1066.             true color (RGB) data compression:
  1067.  
  1068.             <Param1> and <Param2> are ignored.
  1069.  
  1070.  
  1071.             Text compression: 
  1072.  
  1073.             <Param1> is the order of PPM algorithm (can be 2 - 63).
  1074.             Usually a higher value slightly increases the compression ratio
  1075.             of redundant data, but only if enough memory is available
  1076.             to PPM. In case of lack of memory the result may be negative.
  1077.             Higher order values decrease both compression and decompression
  1078.             speed.
  1079.  
  1080.             <Param2> is memory in megabytes allocated for PPM (1-128).
  1081.             Higher values may increase the compression ratio, but note
  1082.             that PPM uses the equal memory size both to compress and
  1083.             decompress, so if you allocate too much memory when creating
  1084.             an archive, other people may have problems when decompressing
  1085.             it on a computer with less memory installed. Decompression
  1086.             will be still possible using virtual memory, but it may
  1087.             become very slow.
  1088.  
  1089.  
  1090.             Examples:
  1091.  
  1092.             1) switch -mc1a+ forces use of 8-bit mono audio compression
  1093.             for all data.
  1094.  
  1095.             2) switch -mc10:40t+ forces use of text compression
  1096.             algorithm for all data, sets the compression order to 10
  1097.             and allocates 40 MB memory.
  1098.  
  1099.             3) switch -mc12t sets the text compression order to 12,
  1100.             when the text compression is used, but leaves to RAR to
  1101.             decide when to use it.
  1102.  
  1103.             4) switches -mct- -mcd- disable text and delta compression.
  1104.  
  1105.  
  1106.     -md<n>  Select dictionary size <n> in KB. Must be 64, 128, 256, 512,
  1107.             1024, 2048 or 4096 or a letter 'a', 'b', 'c', 'd', 'e', 'f', 'g'
  1108.             respectively.
  1109.  
  1110.             The sliding dictionary is a special memory area used by the
  1111.             compression algorithm. If the size of the file being compressed
  1112.             (or the total files size in the case of a solid archive) is
  1113.             greater than the dictionary size, then increasing the dictionary
  1114.             size will generally increase compression ratio, decrease packing
  1115.             speed and increase memory requirements.
  1116.  
  1117.             RAR can reduce the dictionary size if it is significantly
  1118.             larger than the size of the source data. It helps to reduce
  1119.             memory requirements without decreasing compression.
  1120.  
  1121.             Default sliding dictionary size is 4096 KB.
  1122.  
  1123.             Example:
  1124.  
  1125.             RAR a -s -mdd sources *.asm
  1126.                 or
  1127.             RAR a -s -md512 sources *.asm
  1128.  
  1129.             Will create a solid archive using a 512 KB dictionary.
  1130.  
  1131.  
  1132.     -ms[list]
  1133.             Specify file types to store.
  1134.  
  1135.             Specify file types, which will be stored without compression.
  1136.             This switch may be used to store already compressed files,
  1137.             which helps to increase archiving speed without noticeable
  1138.             loss in the compression ratio.
  1139.  
  1140.             Optional <list> parameter defines the list of file extensions
  1141.             separated by semicolons. For example, -msrar;zip;jpg will
  1142.             force RAR to store without compression all RAR and ZIP
  1143.             archives and JPG images. It is also allowed to specify wildcard
  1144.             file masks in the list, so -ms*.rar;*.zip;*.jpg will work too.
  1145.  
  1146.             If <list> is not specified, -ms switch will use the default
  1147.             set of extensions, which includes the following file types:
  1148.  
  1149.             7z, ace, arj, bz2, cab, gz, jpeg, jpg, lha, lzh, mp3,
  1150.             rar, taz, tgz, z, zip
  1151.  
  1152.  
  1153.     -mt<threads>
  1154.             Set the number of threads. Available in Windows version.
  1155.             May be available in some of Unix versions.
  1156.  
  1157.             <threads> parameter can take values from 0 to 16.
  1158.             It defines the recommended number of active threads
  1159.             for compression algorithm. If it is greater than 0,
  1160.             RAR will use the multithreaded version of compression
  1161.             algorithm providing higher speed on multiprocessor
  1162.             architectures. Real number of active threads can differ
  1163.             from the specified.
  1164.  
  1165.             If <threads> is zero, RAR will use the single threaded
  1166.             compression algorithm.
  1167.  
  1168.             Change of <threads> parameter slightly affects the compression
  1169.             ratio, so archives created with different -mt switches
  1170.             will not be exactly the same even if all other compression
  1171.             settings are equal.
  1172.  
  1173.             If -mt switch is not specified, RAR will try to detect
  1174.             the number of available processors and select the optimal
  1175.             number of threads automatically.
  1176.  
  1177.  
  1178.     -n<f>   Include only the specified file <f>. Wildcards may be used
  1179.             both in the name and file parts of file mask. You may specify
  1180.             the switch '-n' several times.
  1181.  
  1182.             This switch does not replace usual file masks, which still
  1183.             need to be entered in the command line. It is an additional
  1184.             filter limiting processed files only to those matching
  1185.             the include mask specified in -n switch. It can help to
  1186.             reduce the command line length sometimes.
  1187.  
  1188.             For example, if you need to compress all *.txt and *.lst
  1189.             files in directories Project and Info, you can enter:
  1190.  
  1191.             rar a -r text Project\*.txt Project\*.lst Info\*.txt Info\*.lst
  1192.  
  1193.             or using the switch -n:
  1194.  
  1195.             rar a -r -n*.txt -n*.lst text Project Info
  1196.  
  1197.  
  1198.     -n@<lf> Include files using the specified list file.
  1199.  
  1200.             Similar to -n<f> switch, but reads include masks from
  1201.             the list file. If you use -n@ without the list file name
  1202.             parameter, it will read file names from stdin.
  1203.  
  1204.             Example:
  1205.  
  1206.             rar a -r -n@inclist.txt text Project Info
  1207.  
  1208.  
  1209.     -oc     Set NTFS Compressed attribute. Win32 version only.
  1210.  
  1211.             This switch allows to restore NTFS Compressed attribute
  1212.             when extracting files. RAR saves Compressed file attributes
  1213.             when creating an archive, but does not restore them unless
  1214.             -oc switch is specified.
  1215.  
  1216.  
  1217.     -ol     Save symbolic links as the link instead of the file.
  1218.             Unix version only.
  1219.  
  1220.  
  1221.     -or     Rename extracted files automatically if file with the same name
  1222.             already exists. Renamed file will get the name like
  1223.             'filename(N).txt', where 'filename.txt' is the original file
  1224.             name and 'N' is a number.
  1225.  
  1226.  
  1227.     -os     Save NTFS streams. Win32 version only.
  1228.  
  1229.             This switch has meaning only for NTFS file system under
  1230.             Windows NT and allows to save alternative data streams
  1231.             associated with a file. It is especially important under
  1232.             Windows 2000 and XP, which use streams to keep some file
  1233.             dependent information like file descriptions. If you use
  1234.             RAR to backup your NTFS disks, it is recommended to specify
  1235.             this switch.
  1236.  
  1237.  
  1238.     -ow     Use this switch when archiving to save file security
  1239.             information and when extracting to restore it.
  1240.  
  1241.             Unix RAR version saves file owner and group when using
  1242.             this switch.
  1243.  
  1244.             Win32 version stores owner, group, file permissions and
  1245.             audit information, but only if you have necessary privileges
  1246.             to read them. Note that only NTFS file system supports
  1247.             file based security under Windows.
  1248.  
  1249.     -o+     Overwrite existing files.
  1250.  
  1251.  
  1252.     -o-     Do not overwrite existing files.
  1253.  
  1254.  
  1255.     -p[p]   Encrypt files with the string <p> as password while archiving.
  1256.             The password is case-sensitive. If you omit the password on the
  1257.             command line, you will be prompted with message "Enter password".
  1258.  
  1259.             Example:
  1260.  
  1261.             rar a -pmyhoney secret1 *.txt
  1262.  
  1263.             add files *.txt and encrypt them with password "myhoney".
  1264.  
  1265.  
  1266.     -p-     Do not query password
  1267.  
  1268.  
  1269.     -r      Recurse subdirectories. May be used with commands:
  1270.             a, u, f, m, x, e, t, p, v, l, c, cf and s.
  1271.  
  1272.             When used with the commands 'a', 'u', 'f', 'm' will process
  1273.             files in all sub-directories as well as the current working
  1274.             directory.
  1275.  
  1276.             When used with the commands x, e, t, p, v, l, c, cf or s will
  1277.             process all archives in sub-directories as well as the current
  1278.             working directory.
  1279.  
  1280.  
  1281.     -r0     Similar to -r, but when used with the commands 'a', 'u', 'f',
  1282.             'm' will recurse subdirectories only for those names, which
  1283.             include wildcard characters '*' and '?'
  1284.  
  1285.  
  1286.     -ri<p>[:<s>]
  1287.             Set priority and sleep time. Available only in RAR for Windows.
  1288.             This switch regulates system load by RAR in multitasking
  1289.             environment. Possible task priority <p> values are 0 - 15.
  1290.  
  1291.             If <p> is 0, RAR uses the default task priority.
  1292.             <p> equal to 1 sets the lowest possible priority,
  1293.             15 - the highest possible.
  1294.  
  1295.             Sleep time <s> is a value from 0 to 1000 (milliseconds).
  1296.             This is a period of time that RAR gives back to the system
  1297.             after every read or write operation while compressing
  1298.             or extracting. Non-zero <s> may be useful if you need to reduce
  1299.             system load even more than can be achieved with <p> parameter.
  1300.  
  1301.             Example:
  1302.  
  1303.             execute RAR with default priority and 10 ms sleep time:
  1304.  
  1305.             rar a -ri0:10 backup *.*
  1306.  
  1307.  
  1308.     -rr[N]  Add a data recovery record. This switch is used when creating
  1309.             or modifying an archive to add a data recovery record to
  1310.             the archive. See the 'rr[N]' command description for details.
  1311.  
  1312.  
  1313.     -rv[N]  Create recovery volumes. This switch is used when creating
  1314.             a multivolume archive to generate recovery volumes.
  1315.             See the 'rv[N]' command description for details.
  1316.  
  1317.  
  1318.     -s      Create solid archive. Solid is a special archive type. Please
  1319.             refer to the appendix "Glossary" for further information.
  1320.  
  1321.             Example:
  1322.  
  1323.             create solid archive sources.rar with 512 KB dictionary,
  1324.             recursing all directories, starting with the current directory.
  1325.             Add only .asm files:
  1326.  
  1327.             rar a -s -md512 sources.rar *.asm -r
  1328.  
  1329.  
  1330.     -s<N>   Create solid groups using file count
  1331.  
  1332.             Similar to -s, but reset solid statistics after compressing
  1333.             <N> files. Usually decreases compression, but also
  1334.             decreases losses in case of solid archive damages.
  1335.  
  1336.  
  1337.     -se     Create solid groups using extension
  1338.  
  1339.             Similar to -s, but reset solid statistics if file extension
  1340.             is changed. Usually decreases compression, but also
  1341.             decreases losses from solid archive damages.
  1342.  
  1343.  
  1344.     -sfx[name]
  1345.             Create SFX archives. If this switch is used when creating a new
  1346.             archive, a Self-Extracting archive (using a module in file
  1347.             default.sfx or specified in the switch) would be created.
  1348.             In the Windows version default.sfx should be placed in the
  1349.             same directory as the rar.exe, in Unix - in the user's
  1350.             home directory, in /usr/lib or /usr/local/lib.
  1351.  
  1352.             Example:
  1353.  
  1354.             rar a -sfxwincon.sfx myinst
  1355.  
  1356.             create SelF-eXtracting (SFX) archive using wincon.sfx
  1357.             SFX-module.
  1358.  
  1359.  
  1360.     -si[name]
  1361.             Read data from stdin (standard input), when creating
  1362.             an archive. Optional 'name' parameter allows to specify
  1363.             a file name of compressed stdin data in the created
  1364.             archive. If this parameter is missing, the name will be
  1365.             set to 'stdin'. This switch cannot be used with -v.
  1366.  
  1367.             Example:
  1368.  
  1369.             type Tree.Far | rar a -siTree.Far tree.rar
  1370.  
  1371.             will compress 'type Tree.Far' output as 'Tree.Far' file.
  1372.  
  1373.  
  1374.     -sl<size>
  1375.             Process only those files, which size is less than
  1376.             specified in <size> parameter of this switch.
  1377.  
  1378.  
  1379.     -sm<size>
  1380.             Process only those files, which size is more than
  1381.             specified in <size> parameter of this switch.
  1382.  
  1383.  
  1384.     -sv     Create independent solid volumes
  1385.  
  1386.             By default RAR tries to reset solid statistics as soon
  1387.             as possible when starting a new volume, but only 
  1388.             if enough data was packed after a previous reset
  1389.             (at least a few megabytes).
  1390.  
  1391.             This switch forces RAR to ignore packed data size and attempt
  1392.             to reset statistics for volumes of any size. It decreases
  1393.             compression, but increases chances to extract a part of data 
  1394.             if one of several solid volumes in a volume set was lost
  1395.             or damaged.
  1396.  
  1397.             Note that sometimes RAR cannot reset statistics even
  1398.             using this switch. For example, it cannot be done when 
  1399.             compressing one large file split between several volumes.
  1400.             RAR is able to reset solid statistics only between separate 
  1401.             files, but not inside of single file.
  1402.  
  1403.             Ignored, if used to create non-volume archive.
  1404.  
  1405.  
  1406.     -sv-    Create dependent solid volumes
  1407.  
  1408.             Disables to reset solid statistics between volumes.
  1409.  
  1410.             It slightly increases compression, but significantly reduces 
  1411.             chances to extract a part of data if one of several solid
  1412.             volumes in a volume set was lost or damaged.
  1413.  
  1414.             Ignored, if used to create non-volume archive.
  1415.  
  1416.  
  1417.     -s-     Disable solid archiving
  1418.  
  1419.  
  1420.     -t      Test files after archiving. This switch is especially
  1421.             useful in combination with the move command, so files will be
  1422.             deleted only if the archive had been successfully tested.
  1423.  
  1424.  
  1425.     -ta<date>
  1426.             Process only files modified after the specified date.
  1427.  
  1428.             Format of the date string is YYYYMMDDHHMMSS.
  1429.             It is allowed to insert separators like '-' or ':' to
  1430.             the date string and omit trailing fields. For example,
  1431.             the following switch is correct: -ta2001-11-20
  1432.             Internally it will be expanded to -ta20011120000000
  1433.             and treated as "files modified after 0 hour 0 minutes
  1434.             0 seconds of 20 November 2001".
  1435.  
  1436.  
  1437.     -tb<date>
  1438.             Process only files modified before the specified date.
  1439.             Format of the switch is the same as -ta<date>.
  1440.  
  1441.  
  1442.     -tk     Keep original archive date. Prevents RAR from modifying the
  1443.             archive date when changing an archive.
  1444.  
  1445.  
  1446.     -tl     Set archive time to newest file. Forces RAR to set the date of a
  1447.             changed archive to the date of the newest file in the archive.
  1448.  
  1449.  
  1450.     -tn<time>
  1451.             Process files newer than the specified time period. Format
  1452.             of the time string is:
  1453.  
  1454.             [<ndays>d][<nhours>h][<nminutes>m][<nseconds>s]
  1455.  
  1456.             For example, use switch -tn15d to process files newer
  1457.             than 15 days and -tn2h30m to process files newer than
  1458.             2 hours 30 minutes.
  1459.  
  1460.  
  1461.     -to<time>
  1462.             Process files older than the specified time period. Format
  1463.             of the switch is the same as -tn<time>.
  1464.  
  1465.  
  1466.     -ts<m,c,a>[N]
  1467.             Save or restore file time (modification, creation, access).
  1468.  
  1469.             Switch -tsm instructs RAR to save file modification time,
  1470.             -tsc - creation time and tsa - last access time. Optional
  1471.             parameter after the switch is the number between 0 and 4
  1472.             controlling the file time precision. Value '1' enables
  1473.             1 second precision, 2 - 0.0065536 sec, 3 - 0.0000256 sec and
  1474.             4 or '+' enables the maximum NTFS time precision, which is
  1475.             equal to 0.0000001 sec. Value '0' or '-' means that creation
  1476.             and access time are not saved and low (two seconds) precision
  1477.             is used for modification time. Higher precision modes add
  1478.             more data to archive, up to 19 additional bytes per file
  1479.             in case of -tsm4 -tsa4 -tsc4 combination. If no precision
  1480.             is specified, RAR uses '4' (high) value.
  1481.  
  1482.             Default RAR mode is -tsm4 -tsc0 -tsa0, so modification time
  1483.             is stored with the high precision and other times are ignored.
  1484.  
  1485.             It is necessary to specify -tsc and -tsa switches to set
  1486.             creation and access time when unpacking files (precision
  1487.             is irrelevant, but must not be 0). By default RAR sets
  1488.             only the modification time, even if archive contains
  1489.             creation and last access time. Setting the modification
  1490.             time to unpacked files may be also disabled with -tsm-.
  1491.  
  1492.             It is possible to omit the time type letter if you need
  1493.             to apply the switch to all three times. For example,
  1494.             -tsm4 -tsa4 -tsc4 can be replaced by -ts4, -ts+ or -ts.
  1495.             Use -ts- to save only the low precision modification time
  1496.             or to ignore all three file times on unpacking.
  1497.  
  1498.             When creating an archive, RAR automatically reduces
  1499.             the precision if high mode is not supported by the file
  1500.             system. It is not more than 2 seconds on FAT and 1 second
  1501.             in Unix. NTFS time precision is 0.0000001 second.
  1502.  
  1503.             Operating systems limit which time can be set on unpacking.
  1504.             Windows allows to set all three times, Unix - modification
  1505.             and last access, but not creation, DOS supports only
  1506.             the modification time.
  1507.  
  1508.             Examples:
  1509.  
  1510.             1) rar a -ts backup
  1511.  
  1512.             Store all file times with the highest possible precision.
  1513.  
  1514.             2) rar x -tsa backup
  1515.  
  1516.             Restore modification and last access time. Switch -tsm
  1517.             is not required, because RAR uses it by default.
  1518.  
  1519.             3) rar a -tsm1 -tsc1 backup
  1520.  
  1521.             Store low precision modification and creation time.
  1522.             Without -tsm1 RAR would save the high precision modification
  1523.             time.
  1524.  
  1525.  
  1526.     -u      Update files. May be used with archive extraction or creation.
  1527.             The command string "a -u" is equivalent to the command 'u', you
  1528.             could also use the switch '-u' with the commands 'm' or 'mf'. If
  1529.             the switch '-u' is used with the commands 'x' or 'e', then files
  1530.             not present on the disk and files newer than their copies on the
  1531.             disk would extracted from the archive.
  1532.  
  1533.  
  1534.     -v      Create volumes with size autodetection or list all volumes
  1535.  
  1536.             This switch may be used when creating or listing volumes.
  1537.  
  1538.             In the first case it enables volume size autodetection,
  1539.             so new volumes will use all available space on the destination
  1540.             media. It is convenient when creating volumes on removable
  1541.             disks. You may read more about volumes in -v<size> description.
  1542.  
  1543.             In the second case, when this switch is used together with
  1544.             'V' or 'L' command, it forces RAR to list contents of all
  1545.             volumes starting from that specified in the command line.
  1546.             Without this switch RAR displays contents of only one single
  1547.             specified volume.
  1548.  
  1549.  
  1550.     -v<size>[k|b|f|m|M|g|G]
  1551.             Create volumes with size=<size>*1000 [*1024 | *1].
  1552.             By default this switch uses <size> as thousands (1000) of bytes
  1553.             (not 1024 x bytes). You may also enter the size in kilobytes
  1554.             using the symbol 'k', in bytes using the symbol 'b',
  1555.             megabytes - 'm', millions of bytes - 'M', gigabytes - 'g',
  1556.             billions (milliards) of bytes - 'G' or select one of several
  1557.             predefined values using the symbol 'f' following the numerical
  1558.             value. Predefined values can be 360, 720, 1200, 1440 or 2880
  1559.             and replaced with corresponding floppy disk size.
  1560.  
  1561.             If the size is omitted, autodetection will be used.
  1562.  
  1563.             You may specify several -v switches to set different sizes
  1564.             for different volumes. For example:
  1565.  
  1566.               rar a -v100k -v200k -v300k arcname
  1567.  
  1568.             sets 100 KB size for first volume, 200 KB for second
  1569.             and 300 KB for all following volumes.
  1570.  
  1571.             If volumes are created on removable media, then after
  1572.             the creation of the first volume, the user will be prompted
  1573.             with:
  1574.  
  1575.               Create next volume: Yes/No/All
  1576.  
  1577.             At this moment in time, you should change the disks. Answering
  1578.             'A' will cause all volumes to be created without a pause.
  1579.  
  1580.             By default RAR volumes have names like 'volname.partNNN.rar',
  1581.             where NNN is the volume number. Using -vn switch it is 
  1582.             possible to switch to another, extension based naming scheme,
  1583.             where the first volume file in a multi-volume set has
  1584.             the extension .rar, following volumes are numbered from .r00
  1585.             to .r99.
  1586.  
  1587.             When extracting or testing a multi-volume archive you must use
  1588.             only the first volume name. If there is no next volume
  1589.             on the drive and the disk is removable, the user will be
  1590.             prompted with:
  1591.  
  1592.              Insert disk with <next volume name>
  1593.  
  1594.             Insert the disk with the correct volume and press any key.
  1595.  
  1596.             If while extracting, the next volume is not found and volumes
  1597.             are placed on the non-removable disk, RAR will abort with
  1598.             the error message:
  1599.  
  1600.              Cannot find <volume name>
  1601.  
  1602.             Archive volumes may not be modified. The commands 'd', 'f', 'u',
  1603.             's' cannot be used with Multi-volume sets. The command 'a' may
  1604.             be used only for the creation of a new multi-volume sequence.
  1605.  
  1606.             It is possible, although unlikely, that the file size, of a file
  1607.             in a multi-volume set, could be greater than its uncompressed
  1608.             size. This is due to the fact that 'storing' (no compression if
  1609.             size increases) cannot be enabled for multi-volume sets.
  1610.  
  1611.             Archive volumes may be Self-Extracting (SFX). Such an archive
  1612.             should be created using both the '-v' and '-sfx' switches.
  1613.  
  1614.             Example:
  1615.  
  1616.             create archive in volumes of fixed size:
  1617.  
  1618.             rar a -s -v1440 floparch.rar *.*
  1619.  
  1620.             will create solid volumes of size 1440000 bytes.
  1621.  
  1622.  
  1623.     -vd     Erase disk contents before creating volume
  1624.  
  1625.             All files and directories on the target disk will be erased
  1626.             when '-vd' is used.  The switch applies only to removable
  1627.             media, the hard disk cannot be erased using this switch.
  1628.  
  1629.  
  1630.     -ver[n] File version control
  1631.  
  1632.             Forces RAR to keep previous file versions when updating
  1633.             files in the already existing archive. Old versions are
  1634.             renamed to 'filename;n', where 'n' is the version number.
  1635.  
  1636.             By default, when unpacking an archive without the switch
  1637.             -ver, RAR extracts only the last added file version, the name
  1638.             of which does not include a numeric suffix. But if you specify
  1639.             a file name exactly, including a version, it will be also
  1640.             unpacked. For example, 'rar x arcname' will unpack only
  1641.             last versions, when 'rar x arcname file.txt;5' will unpack
  1642.             'file.txt;5', if it is present in the archive.
  1643.  
  1644.             If you specify -ver switch without a parameter when unpacking,
  1645.             RAR will extract all versions of all files that match
  1646.             the entered file mask. In this case a version number is
  1647.             not removed from unpacked file names. You may also extract
  1648.             a concrete file version specifying its number as -ver parameter.
  1649.             It will tell RAR to unpack only this version and remove
  1650.             a version number from file names. For example,
  1651.             'rar x -ver5 arcname' will unpack only 5th file versions.
  1652.  
  1653.             If you specify 'n' parameter when archiving, it will limit
  1654.             the maximum number of file versions stored in the archive.
  1655.             Old file versions exceeding this threshold will be removed.
  1656.  
  1657.  
  1658.     -vn     Use the old style volume naming scheme
  1659.  
  1660.             By default RAR volumes have names like 'volname.partNNN.rar',
  1661.             where NNN is the volume number. Using -vn switch it is 
  1662.             possible to switch to another, extension based naming scheme,
  1663.             where the first volume file in a multi-volume set has
  1664.             the extension .rar, following volumes are numbered from .r00
  1665.             to .r99. It may have sense, if you are going to unpack
  1666.             an archive under the plain MS DOS, which does not allow
  1667.             more than one dot in a file name.
  1668.  
  1669.  
  1670.     -vp     Pause before each volume
  1671.  
  1672.             By default RAR asks for confirmation before creating or 
  1673.             unpacking next volume only for removable drives.
  1674.             This switch forces RAR to ask such confirmation always.
  1675.             It can be useful if disk space is limited and you wish
  1676.             to copy each volume to another media immediately after
  1677.             creation.
  1678.  
  1679.  
  1680.     -w<p>   Assign work directory as <p>. This switch may be used to assign
  1681.             the directory for temporary files.
  1682.  
  1683.  
  1684.     -x<f>   Exclude specified file <f>, wildcards may be used both
  1685.             in the name and file parts of file mask. You may specify
  1686.             the switch '-x' several times.
  1687.  
  1688.             If mask contains wildcards, it applies to current directory
  1689.             and its subdirectories. It is not recursive without wildcards,
  1690.             so if you wish to exclude some "filename" in all directories,
  1691.             you need to specify two masks: "filename" for current directory
  1692.             and "*\filename" for subdirectories. If you know an exact path
  1693.             to file, you can use "path\filename" syntax to exclude only
  1694.             this copy of "filename". If you use -xpath\filename syntax
  1695.             when unpacking an archive, "path" must be a path inside of
  1696.             archive, not a file path on the disk after unpacking.
  1697.  
  1698.  
  1699.             Examples:
  1700.  
  1701.             1) rar a -r -x*.bak -x*.rar rawfiles
  1702.  
  1703.             *.bak and *.rar files will not be added to rawfiles
  1704.  
  1705.             2) rar a -r -x*\temp -x*\temp\* savec c:\*
  1706.  
  1707.             compress all files on the disk c: except temp directories
  1708.             and files inside of temp directories
  1709.  
  1710.             3) rar x -x*.txt docs
  1711.  
  1712.             extract all files except *.txt from docs.rar
  1713.  
  1714.  
  1715.     -x@<lf> Exclude files using the specified list file. If you use -x@
  1716.             without the list file name parameter, it will read file names
  1717.             from stdin.
  1718.  
  1719.             Example:
  1720.  
  1721.             rar a -x@exlist.txt arch *.exe
  1722.  
  1723.  
  1724.     -y      Assume Yes on all queries.
  1725.  
  1726.  
  1727.     -z<f>   Read archive comment from file <f>. Use with -fcu switch
  1728.             if you need to read the comment from Unicode text file.
  1729.  
  1730.  
  1731.  
  1732.  Limitations
  1733.  ~~~~~~~~~~~
  1734.  
  1735.     Pathname is limited to 259 symbols.
  1736.  
  1737.     Maximum archive comment length is 62000 bytes.
  1738.  
  1739.     Command limitations:
  1740.  
  1741.     The commands 'd','u','f','c','cf' will not operate with archive
  1742.     volumes.
  1743.  
  1744.     The command 'a' cannot be used to update an archive volume, only to
  1745.     create one.
  1746.  
  1747.  
  1748.  Exit values
  1749.  ~~~~~~~~~~~
  1750.  
  1751.     RAR exits with a zero code (0) in case of successful operation. The exit
  1752.     code of non-zero means the operation was cancelled due to an error:
  1753.  
  1754.      255   USER BREAK       User stopped the process
  1755.  
  1756.        9   CREATE ERROR     Create file error
  1757.  
  1758.        8   MEMORY ERROR     Not enough memory for operation
  1759.  
  1760.        7   USER ERROR       Command line option error
  1761.  
  1762.        6   OPEN ERROR       Open file error
  1763.  
  1764.        5   WRITE ERROR      Write to disk error
  1765.  
  1766.        4   LOCKED ARCHIVE   Attempt to modify an archive previously locked
  1767.                             by the 'k' command
  1768.  
  1769.        3   CRC ERROR        A CRC error occurred when unpacking
  1770.  
  1771.        2   FATAL ERROR      A fatal error occurred
  1772.  
  1773.        1   WARNING          Non fatal error(s) occurred
  1774.  
  1775.        0   SUCCESS          Successful operation
  1776.  
  1777.  
  1778.  Glossary
  1779.  ~~~~~~~~
  1780.  
  1781.     Archive      Special file containing one or more files optionally
  1782.                  compressed and/or encrypted.
  1783.  
  1784.     Compression  A method of encoding data to reduce it's size.
  1785.  
  1786.     CRC          Cyclic Redundancy Check. Mathematical method calculating
  1787.                  special checking information for data validity.
  1788.  
  1789.     SFX          Archive module used to extract files from when executed.
  1790.                  (SelF-eXtracting module), usually in the form of a .EXE
  1791.                  file.
  1792.  
  1793.     Solid        An archive packed using a special compression method which
  1794.                  sees all files as one continuous data stream. Particularly
  1795.                  advantageous when packing a large number of small files.
  1796.  
  1797.     Volume       Part of a split archive. Splitting an archive to volumes
  1798.                  allows storing them on diskettes. Solid volumes must be
  1799.                  extracted starting from first in sequence.
  1800.  
  1801.  
  1802.  
  1803.  Copyrights
  1804.  
  1805.     (c) 1993-2005 Alexander Roshal
  1806.  
  1807.  
  1808.  
  1809.